/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;
import java.util.Date;

/**
 *
 * @author ChengJiLi
 */
public class AlterOrder {

    @Protobuf
    private int orderId;
    private Date timeStamp;
    @Protobuf
    private String dealerUserId;
    private Date time;
    private Date tradeDate;
    private Date dateTime;
    @Protobuf
    private String mac;
    @Protobuf
    private Integer ip4;
    @Protobuf
    private Integer entrustNo;
    @Protobuf
    private String entrustkey;
    @Protobuf
    private Integer alterQty;
    @Protobuf
    private Float alterPrice;
    private String ownUserId;
    private String alterUserId;
    private Date createTime;

    public AlterOrder() {
    }

    public AlterOrder(int orderId, String dealerUserId, Date time, Date tradeDate, Date dateTime) {
        this.orderId = orderId;
        this.dealerUserId = dealerUserId;
        this.time = time;
        this.tradeDate = tradeDate;
        this.dateTime = dateTime;
    }

    public AlterOrder(int orderId, String dealerUserId, Date time, Date tradeDate, Date dateTime, String mac, Integer ip4, Integer entrustNo, String entrustkey, Integer alterQty, Float alterPrice, String ownUserId, String alterUserId, Date createTime) {
        this.orderId = orderId;
        this.dealerUserId = dealerUserId;
        this.time = time;
        this.tradeDate = tradeDate;
        this.dateTime = dateTime;
        this.mac = mac;
        this.ip4 = ip4;
        this.entrustNo = entrustNo;
        this.entrustkey = entrustkey;
        this.alterQty = alterQty;
        this.alterPrice = alterPrice;
        this.ownUserId = ownUserId;
        this.alterUserId = alterUserId;
        this.createTime = createTime;
    }

    public int getOrderId() {
        return this.orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Date getTimeStamp() {
        return this.timeStamp;
    }

    public void setTimeStamp(Date timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getDealerUserId() {
        return this.dealerUserId;
    }

    public void setDealerUserId(String dealerUserId) {
        this.dealerUserId = dealerUserId;
    }

    public Date getTime() {
        return this.time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Date getTradeDate() {
        return this.tradeDate;
    }

    public void setTradeDate(Date tradeDate) {
        this.tradeDate = tradeDate;
    }

    public Date getDateTime() {
        return this.dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getMac() {
        return this.mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Integer getIp4() {
        return this.ip4;
    }

    public void setIp4(Integer ip4) {
        this.ip4 = ip4;
    }

    public Integer getEntrustNo() {
        return this.entrustNo;
    }

    public void setEntrustNo(Integer entrustNo) {
        this.entrustNo = entrustNo;
    }

    public String getEntrustkey() {
        return this.entrustkey;
    }

    public void setEntrustkey(String entrustkey) {
        this.entrustkey = entrustkey;
    }

    public Integer getAlterQty() {
        return this.alterQty;
    }

    public void setAlterQty(Integer alterQty) {
        this.alterQty = alterQty;
    }

    public Float getAlterPrice() {
        return this.alterPrice;
    }

    public void setAlterPrice(Float alterPrice) {
        this.alterPrice = alterPrice;
    }

    public String getOwnUserId() {
        return this.ownUserId;
    }

    public void setOwnUserId(String ownUserId) {
        this.ownUserId = ownUserId;
    }

    public String getAlterUserId() {
        return this.alterUserId;
    }

    public void setAlterUserId(String alterUserId) {
        this.alterUserId = alterUserId;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public byte[] EnCode(AlterOrder msg) throws IOException {
        Codec<AlterOrder> Lcode = ProtobufProxy.create(AlterOrder.class);
        return Lcode.encode(msg);
    }

    public AlterOrder DeCode(byte[] data) throws IOException {
        Codec<AlterOrder> Lcode = ProtobufProxy.create(AlterOrder.class);
        return Lcode.decode(data);
    }
}
